import http from '../index'

/**
 * 交通时间和交通流量信息模块
 * 获取信息
 */

export const _getData = (url) => {
  return http({
    url: `/parameter/v1/${url}`,
    method: 'get',
  })
}

// 获取特定文件信息
export const _getFileData = (url) => {
  return http({
    url: `/parameter/v1/${url}`,
    method: 'get',
  })
}

export const _setFilePath = (url, params) => {
  return http({
    url: `/parameter/v1/${url}`,
    method: 'post',
    data: params,
  })
}
// 获取特定文件路径

// 修改特定信息的接口
export const _putData = (params) => {
  return http({
    url: `/parameter/v1/deep-stream-application`,
    method: 'put',
    data: params,
  })
}

// 修改特定信息的接口
export const _putDataPop = (url, params) => {
  return http({
    url: `/parameter/v1/${url}`,
    method: 'put',
    data: params,
  })
}

export const _setFilePathPop = (params) => {
  return http({
    url: `/parameter/v1/deep-stream-config`,
    method: 'post',
    data: params,
  })
}
